<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    //1.输出100以内的所有偶数，以及他们的和还有个数
    var sum = 0;
    var count =0;
    for(var i =0;i<=100;i++){
        if(i%2===0){
            console.log(i);
            sum+=i;
            count++;
        }
    }
    console.log(sum,count);
</script>
</html>